1 /* Copyright 2006-2011 The MathWorks, Inc. */
2
3 /*
4 * File: xil_interface.h
5 *
6 * SIL/PIL interface functions
7 */
8
9 #ifndef __XIL_INTERFACE_H__
10 #define __XIL_INTERFACE_H__
11
12 /* include rtwtypes.h & XILIOData */
13 #include "xil_interface_common.h"
14
15 /* xil_interface.c|cpp always presents a C
16 * function-call interface for xil_interface_lib.c */
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 /* Get data type information - called from mdlStart */
22 extern XIL_INTERFACE_ERROR_CODE xilGetDataTypeInfo(void);
23
24 /* Process Parameters - called from mdlProcessParameters / mdlStart */
25 extern XIL_INTERFACE_ERROR_CODE xilProcessParams(uint32_T);
26
27 /* Initialize - called from mdlStart */
28 extern XIL_INTERFACE_ERROR_CODE xilInitialize(uint32_T);
29
30 /* Initialize Conditions - called from mdlInitializeConditions */
31 extern XIL_INTERFACE_ERROR_CODE xilInitializeConditions(uint32_T);
32
33 /* Initialize input XILIOData pointer */
34 extern XIL_INTERFACE_ERROR_CODE xilGetUIOData(uint32_T, XIL_COMMAND_TYPE_ENUM, uint32_T, XILIOData **);
35
36 /* Output - called from mdlOutputs */
37 extern XIL_INTERFACE_ERROR_CODE xilOutput(uint32_T, uint32_T);
38
39 /* Update - called from mdlOutputs (not mdlUpdate) */
40 extern XIL_INTERFACE_ERROR_CODE xilUpdate(uint32_T, uint32_T);
41
42 /* Initialize output XILIOData pointer */
43 extern XIL_INTERFACE_ERROR_CODE xilGetYIOData(uint32_T, XIL_COMMAND_TYPE_ENUM, uint32_T, XILIOData **);
44
45 /* Terminate - called from mdlTerminate */
46 extern XIL_INTERFACE_ERROR_CODE xilTerminate(uint32_T);
47
48 /* Enable - called from mdlEnable */
49 extern XIL_INTERFACE_ERROR_CODE xilEnable(uint32_T, uint32_T);
50
51 /* Disable - called from mdlDisable */
52 extern XIL_INTERFACE_ERROR_CODE xilDisable(uint32_T, uint32_T);
53
54 #ifdef __cplusplus
55 }
56 #endif
57
58 #endif
59
|